parse-datetime: use the module from gnulib
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 25 Nov 2015 09:37:21 +0000 (10:37 +0100)
committerColin Walters <walters@verbum.org>
Fri, 4 Dec 2015 16:10:46 +0000 (11:10 -0500)
commit335ea3f339f0adfa9c6d5850f1521d7bd038acb3
tree0f711479ee29f1d9bdd999245acf4fafaf1ae7c6
parent6335dadb4915e5c7011801e9a4c0f9518a0d93ec
parse-datetime: use the module from gnulib

Use the parse-datetime module from gnulib, and adapt it to not require
other modules as portability is not really an issue for us.

DATE can be specified in different formats, such as: "-1 week", "last
monday", "1 week ago".

Include the generated .c file in the repository so to not add another
dependency to Bison.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Makefile-ostree.am
configure.ac
src/ostree/parse-datetime.c
src/ostree/parse-datetime.h
src/ostree/parse-datetime.y [new file with mode: 0644]
tests/test-prune.sh